<!DOCTYPE html>
<html class="x-admin-sm">

<head>
  <meta charset="UTF-8">
  <title></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <!-- <meta name="viewport"
    content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" /> -->
  <!-- <link rel="stylesheet" href="./css/font.css"> -->
  <script src="./lib/axios.js"></script>
  <link rel="stylesheet" href="./css/xadmin.css">
  <link rel="stylesheet" href="./lib/layui/css/layui.css">
  <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
</head>

<body style="background-color: #fff;" class="layui-anim layui-anim-upbit">
  <div class="x-nav">
    <span class="layui-breadcrumb">
      <a href="">首页</a>
      <a href="">演示</a>
      <a>
        <cite>导航元素</cite></a>
    </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
      onclick="location.reload()" title="刷新">
      <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
  </div>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">

      <ul class="layui-nav layui-bg-white" lay-filter="" style="background-color: #f2f2f2;font-size: 14px;">
        <li id="txt" class="layui-nav-item layui-this"><a href="#" style="color: black;font-size: 14px;">文字链接</a></li>
        <li id="pic" class="layui-nav-item"><a href="#" style="color: black;font-size: 14px;">图片链接</a></li>
        <button id="add" type="button" class="layui-btn layui-btn-normal"
          style="width: 70px;float: right;margin-top: 18px;">＋
          新增</button>

      </ul>

      <table id="txtTable" class="layui-table">
        <thead>
          <tr>
            <th>#</th>
            <th>标题</th>
            <th>链接描述</th>
            <th>链接类型</th>
            <th>链接地址</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody id="tbody1">
          <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
            <td><span
                style="display: inline-block ;width: 60px;height: 22px;border: 1px solid #d9ecff;text-align: center;background-color: #ecf5ff;color: #409eff;border-radius: 5px;">文字类型</span>
            </td>
            <td>5</td>
            <td>
              <div class="layui-btn-container">

                <button type="button" class="layui-btn layui-btn-sm layui-btn-primary"
                  style="width: 40px;height: 40px;border-radius: 20px;background-color: #409eff;border:none;">
                  <i class="layui-icon layui-icon-edit" style="color: #fff;"></i>
                </button>
                <button type="button" class="layui-btn layui-btn-sm layui-btn-primary"
                  style="width: 40px;height: 40px;border-radius: 20px;background-color: #f56c6c;border:none;">
                  <i class="layui-icon layui-icon-delete" style="color: #fff;"></i>
                </button>

              </div>
            </td>
          </tr>

        </tbody>

      </table>
      <div id="page-box1"></div>


      <table id="picTable" class="layui-table" style="display: none;">
        <thead>
          <tr>
            <th>#</th>
            <th>链接描述</th>
            <th>链接图片</th>
            <th>链接类型</th>
            <th>链接地址</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody id="tbody2">
          <tr>
            <td>1</td>
            <td>2</td>
            <td><img src="http://124.223.14.236:8060/" alt=""></td>
            <td><span
                style="display: inline-block ;width: 60px;height: 22px;border: 1px solid #e1f3d8;text-align: center;background-color: #f0f9eb;color: #67c23a;border-radius: 5px;">图片类型</span>
            </td>
            <td>5</td>
            <td>
              <div class="layui-btn-container">

                <button id="change" type="button" class="layui-btn layui-btn-sm layui-btn-primary"
                  style="width: 40px;height: 40px;border-radius: 20px;background-color: #409eff;border:none;">
                  <i class="layui-icon layui-icon-edit" style="color: #fff;"></i>
                </button>
                <button id="del" type="button" class="layui-btn layui-btn-sm layui-btn-primary"
                  style="width: 40px;height: 40px;border-radius: 20px;background-color: #f56c6c;border:none;">
                  <i class="layui-icon layui-icon-delete" style="color: #fff;"></i>
                </button>

              </div>
            </td>
          </tr>

        </tbody>
      </table>
      <div id="page-box2" style="display: none;"></div>

    </div>
  </div>

  <form id="addForm" class="layui-form" action="" style="display: none;width: 400px;">

    <div class="layui-form-item">
      <label class="layui-form-label" required lay-verify="required">链接类型</label>
      <div class="layui-input-block" style="width:300px;">
        <select id="select" name="city" lay-verify="required" placeholder="请选择广告位名称">
          <option value="city"></option>

        </select>
      </div>
    </div>

    <div class="layui-form-item">
      <label class="layui-form-label">链接地址</label>
      <div class="layui-input-block">
        <input id="size" type="text" name="size" required lay-verify="required" placeholder="请输入广告图链接"
          autocomplete="off" class="layui-input" style="width: 300px;">
      </div>
    </div>

    <div class="layui-form-item layui-form-text" style="width: 400px;">
      <label class="layui-form-label">链接描述</label>
      <div class="layui-input-block">
        <textarea id="desc" name="desc" type="text" placeholder="请输入广告位描述" class="layui-textarea"
          style="width: 300px;"></textarea>
      </div>
    </div>

  </form>

</body>
<script src="./lib/layui/layui.js"></script>
<script src="./lib/layui/layui.all.js"></script>
<script src="./js/jquery.min.js"></script>

<script src="./js/common.js"></script>
<script src="./js/link.js"></script>

</html>